<?php
$mnguoitimviec=new Model_Nguoitimviec;
if($_GET['mode'] == "delall"){
	if($_GET['check'] == "yes"){
		$mnguoitimviec->delete_all($_POST['id']);
		redirect("index.php?module=nguoitimviec&act=list");
	}
	$str=implode(",",$_POST['id']);
	$data['list']=$mnguoitimviec->listselect($str);
	loadview("nguoitimviec/delete_confirm",$data);
}else{
$data['info']=$mnguoitimviec->listnguoitimviec();
loadview("nguoitimviec/list_view",$data);
}